package Book;

import java.util.Arrays;

public class BookList {
    public Book[] books = new Book[10];
    public int booksize;
    public BookList(){
        books[0] = new Book("三国演义","罗贯中",66);
        books[1] = new Book("水浒传","施耐庵",77);
        books[2] = new Book("西游记","吴承恩",88);
        this.booksize=3;
    }

    public int getBooksize() {
        return booksize;
    }

    public void setBooksize(int booksize) {
        this.booksize = booksize;
    }
    public Book getpos(int x){
        return this.books[x];
    }
    public void setpos(int x,Book book){
        this.books[x] = book;
    }

    /*public static void main(String[] args) {
        BookList bookList = new BookList();
        System.out.println(Arrays.toString(bookList.books));
    }*/
}
